package com.guet.niit.Agent.pojo;
import java.util.Date;

/*1）投资项目：选择充电站→投资
2）利润报表：查询profit表获得利润报表的信息
*/
//JDBC链入
//任务：封装要操作的表的实体类，操作一个表封装一个实体类。
//实体类封装
public class Agent{
    private Long agent_id;
    private Long station_id;
    private int profit;
    private Long id;
    private int invest_cost;
    private Date update_time;

    public Agent() {

    }

    @Override
    public String toString() {
        return "Agent{" +
                "agent_id=" + agent_id +
                ", station_id=" + station_id +
                ", profit=" + profit +
                ", id=" + id +
//                ", invest_cost=" + invest_cost +
                ", update_time=" + update_time +
                '}';
    }

    public Agent(Long agent_id, Long station_id, Long id, int profit, Date update_time) {
        this.agent_id = agent_id;
        this.station_id = station_id;
        this.id = id;
        this.profit = profit;
        this.update_time = update_time;
    }

    public Agent(Long agent_id, Long station_id, int invest_cost, Long id, Date update_time) {
        this.agent_id = agent_id;
        this.station_id = station_id;
        this.invest_cost = invest_cost;
        this.id = id;
        this.update_time = update_time;
    }

    public Long getAgent_id() {
            return agent_id;
        }

        public void setAgent_id(Long agent_id) {
            this.agent_id = agent_id;
        }

        public Long getStation_id() {
            return station_id;
        }

        public void setStation_id(Long station_id) {
            this.station_id = station_id;
        }

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public int getInvest_cost(int invest_cost) {
            return this.invest_cost;
        }

        public void setInvest_cost(int invest_cost) {
            this.invest_cost = invest_cost;
        }

        public Date getUpdate_time(String fomat) {
            return update_time;
        }

        public Date getUpdate_time() {
        return update_time;
    }

        public void setUpdate_time(Date update_time) {
            this.update_time = update_time;
        }

    public int getProfit(Double dayProf) {
        return profit;
    }

    public int getProfit() {
        return profit;
    }

    public void setProfit(int profit) {
        this.profit = profit;
    }
}
